<form id="form_bind_datagrid_column_in_m44" encType="multipart/form-data" method="post" action="#" class="form">
    <input type="hidden" name="datagrid_code" value="datagrid_column_m44">
    <input type="hidden" name="id" value="{$id}">
    <div class="wrapper-form">
        <dl class="row">
            <dt class="tit">
                <label>属性</label>
            </dt>
            <dd class="opt">
                <input type="text" name="dictionary_id" id="dictionary_id_in_form_bind_datagrid_column_in_m44"/>
            </dd>
        </dl>
    </div>
</form>
<script>
    $(function () {
        //编辑接口里需要通过page_code去获取对应的纵列
        var subjectId = "{$id}";
        var subjectKeyword = "datagrid_column_in_m44";
        var datagridCode = "datagrid_column_m44";
        var formId = "#form_bind_" + subjectKeyword;
        var dictionaryOptionData = getDictionaryOption();
        $("#dictionary_id_in_form_bind_datagrid_column_in_m44").combobox({
            data:dictionaryOptionData,
            textField:"dictionary_name_cn",
            valueField:"id"
        });

        var loadData = getDetailInfo(subjectId);
        $(formId).form("load", loadData);

        function getDetailInfo(subjectId) {
            var data = {};
            $.ajax({
                url: '/api/DatagridColumn/getDatagridColumnInfo',
                async: false,
                type: 'post',
                data: {id: subjectId},
                success: function (resp) {
                    if (1 == resp.code) {
                        data = resp.data;
                    }
                }
            });
            return data;
        }

        function getDictionaryOption()
        {
            var data = [];
            $.ajax({
                url: '/api/Dictionary/getDictionaryOption',
                async: false,
                type: 'post',
                data: {},
                dataType: 'json',
                success: function (resp) {
                    if (1 == resp.code) {
                        data = resp.data;
                    }
                }
            });
            return data;
        }
    });
</script>